package com.fh.client;


import com.fh.fallback.OrderitemClientFallback;
import com.fh.fallback.StockUpdateClientFallback;
import com.fh.model.OrderItem;
import com.fh.model.ProductSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "stock-update",fallback = StockUpdateClientFallback.class)
public interface StockUpdateClient {
    @PutMapping("stockupdate/update")
    public  int  update(@RequestBody ProductSku productSku);


}
